<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 
        2.两栏布局，防止出现文字环绕效果

     -->
     <style>
         #d1,#d2{
             width: 200px;
             height: 66px;
             border:1px solid greenyellow;
             box-sizing: border-box;
         }
         #d1{
             float: left;
             background-color: greenyellow;
         }
         #d2{
             width: 400px;
             height: 100px;
             background-color: red;
         }
     </style>
</head>
<body>
    <div id="d1">
        1
    </div>
    <div style="overflow: hidden;">
    <div id="d2">
        2
    </div>
</div>
</body>
</html>